package com.ryan.route.service;

import com.ryan.route.entity.RouteCollect;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ryan.route.entity.frontvo.RouteCollectVo;

import java.util.List;

/**
 * <p>
 * 路线收藏 服务类
 * </p>
 *
 * @author ryan
 * @since 2020-08-03
 */
public interface RouteCollectService extends IService<RouteCollect> {

    /**
     * 判断是否已经收藏
     * @param routeId
     * @param memberId
     * @return
     */
    boolean isCollect(String routeId, String memberId);

    /**
     * 移除收藏
     * @param routeId
     * @param memberId
     * @return
     */
    int removeCollect(String routeId, String memberId);

    List<RouteCollectVo> getCollectList(String memberIdByJwtToken);
}
